package cn.zjyj.module.zjyj.controller.admin.risksample.vo;

import com.alibaba.fastjson.JSONArray;
import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.zjyj.framework.common.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.zjyj.framework.common.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 风险样本分页 Request VO")
@Data
public class RiskSamplePageReqVO extends PageParam {

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "名称", example = "芋艿")
    private String name;

    @Schema(description = "风险类型（1:作业类，2:设备类，3:环境类，4公共类）", example = "1")
    private Integer riskType;

    @Schema(description = "描述", example = "你猜")
    private String description;

    @Schema(description = "风险详情")
    private JSONArray riskDetail = new JSONArray();

}